<html>

<head>
	<meta charset="utf-8"/>
	<title>hello</title>
</head>

<body onmousedown="HH.Move()">
	<p><object id="HH" width=100 height=100 classid="clsid:eee5d0fa-03f5-4b50-8be6-c50beddd86de"></object></p>
	<p><button onclick="HH.AboutBox()">about</button></p>
	<p><button onclick="HH.Max()">Max</button></p>
	<p><button onclick="HH.Min()">Min</button></p>
	<p><button onclick="HH.Restore()">Restore</button></p>
	<p><button onclick="HH.Exit()">Exit</button></p>
	<p><button onclick="HH.Exec('open', 'notepad.exe', '', '', 1)">Exec</button></p>
	<p><button onclick="alert(HH.Find('hello'))">Find</button></p>
	<p><button onclick="alert(HH.Show('我好开心','您好',0|0x40))">Show-普通</button></p>
	<p><button onclick="alert(HH.Show('我好开心','您好',1))">Show-是否</button></p>
	<p><button onclick="alert(HH.Show('我好开心','您好',0x10))">Show-错误</button></p>
	<p><button onclick="HH.MoveW(HH.GetMainID(),0,0,500,300,1)">MoveW</button></p>
	<p><button onclick="testMoveW()">MoveW</button></p>
	<p><button onclick="testSwitchW()">SwitchW</button></p>
	<script>
		function testMoveW(){
			var hwnd = HH.Find('管理员:  hello');
			alert(hwnd);
			HH.MoveW(hwnd,0,0,500,300,1);
			HH.SwitchW(hwnd);
		}
		
		function testSwitchW(){
			var hwnd = HH.Find('管理员:  hello');
			alert(hwnd);
			HH.SwitchW(hwnd)
		}
	</script>
</body>
</html>